//基本返回类
export interface HttpResponse {
    code: Number,
    msg: String,
    data?: any,
    timestamp: Number,
    now: String,
}

interface HttpOptions {
    msg?: boolean,
    token?: boolean,
    load?: boolean,
}

//基本配置类
export interface HttpConfig {
    url: string,
    method: "GET" | "POST" | "PUT" | "DELETE",
    params?: any,
    data?: any,
    headers?: any,
    httpOptions?: HttpOptions,
    timeout?: number,
    responseType?: "arraybuffer" | "blob" | "document" | "json" | "text" | "stream",
}

//分页类
export interface Page {
    page: Number,
    size: Number,
}